package com.bone.user.dao;

import java.util.Map;

import com.bone.common.BaseIbatisDAO;
import com.bone.page.Page;
import com.bone.user.po.UserAccountChange;


/**
 * DAO.
 * @author liwenzhan
 *
 */
public class UserAccountChangeDAO extends BaseIbatisDAO {

	
	/**
	 * 取符合查询条件的数据.
	 * @param parameter
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public Page<UserAccountChange> queryUserAccountChangePageByParam(Map<String, Object> para,Page page){
		Long totalResultSize = (Long) getSqlMapClientTemplate().queryForObject("USER_ACCOUNT_CHANGE.queryByParamCount", para);
		page.setTotalResultSize(totalResultSize);				
		para.put("startRows", page.getStartRows());				
		para.put("endRows", page.getEndRows());
		page.setItems(getSqlMapClientTemplate().queryForList("USER_ACCOUNT_CHANGE.queryByParam", para));
		return page;
	}
	

}
